package cate.common.table.res.crystalldraw;

import cate.common.table.ESheet;
import cate.common.util.random.RWList;

import java.util.ArrayList;
import java.util.List;

public class CrystallDrawWeightSheet extends ESheet<CrystallDrawWeightRow> {
    @Override
    public String getSheetName() {
        return "水晶珍藏权重";
    }

    public List<String> randomRewards(int times) {
        ArrayList<String> list = new ArrayList<>();
        RWList<CrystallDrawWeightRow> weightList = new RWList<>(getList()).setup();
        for (int i = 0; i < times; ++i) {
            list.add(weightList.get().rewardStr);
        }
        return list;
    }
}
